package ioc.v2;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

//@Component("aa")
@Service
@ResponseBody
//@Controller
public class HCer {
    public void run(){
        System.out.println("Hello Controller"
        );
    }
    @RequestMapping("/m1")
    public String run2(){
       // System.out.println("测试controller和service区别");
        return "测试controller和service区别";
    }
}
